﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace weighing
{
    /// <summary>
    /// 功能配制
    /// </summary>
    public class FunctionConfig
    {

        public static FunctionConfig Default
        {
            get
            {
                return new FunctionConfig
                {
                    UpOfficalData = false,
                    UpGovernMentData = false,
                    RealDeductTax = false,
                    RepetitionOut = false,
                    ShowNoUps = false,
                    Speak = false                    
                };
            }
        }

        /// <summary>
        /// 是否上传到官方服务器
        /// </summary>
        public bool UpOfficalData { get; set; }
        /// <summary>
        /// 是否上传到 政府 服务器
        /// </summary>
        public bool UpGovernMentData { get; set; }
        /// <summary>
        /// 是否开启实时扣税
        /// </summary>
        public bool RealDeductTax { get; set; }
        /// <summary>
        /// 是否允许取消出场(重先出场)
        /// </summary>
        public bool RepetitionOut { get; set; }

        /// <summary>
        /// 是否显示未上传的数据信息
        /// </summary>
        public bool ShowNoUps { get; set; }
        /// <summary>
        /// 是否开启语音播报功能
        /// </summary>
        public bool Speak { get; set; }
    }
}
